import Vue from 'vue'
import App from './App'
import router from './router'
import 'amfe-flexible'
import store from './store'
import config from '@/config'
import importDirective from '@/directive'
import importFilters from '@/filter'
import mixin from './mixin'
import Vant from 'vant'
import 'vant/lib/index.css'

Vue.use(Vant)
/**
 * @description 生产环境关掉提示
 */
Vue.config.productionTip = false
Vue.mixin(mixin)
/**
 * 注册指令
 */
importDirective(Vue)
importFilters(Vue)

/**
 * @description 全局注册应用配置
 */
Vue.prototype.$config = config

new Vue({
  router,
  el: '#app',
  store,
  render: h => h(App)
});
